package com.senlingspace.common.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 预支付请求
 *
 * @author lebronjames
 * @date 2024/09/29
 */
@Data
public class PrepaymentRequest implements Serializable {

    @NotBlank(message = "OPENID不能为空！")
    private String openId;

    @NotNull(message = "订单ID不能为空！")
    private Long orderId;

    // 只有商品订单才需要以下字段
    /**
     * 收货地址ID
     */
    private String addressId;

    /**
     * 取货方式
     * <p>
     * IN_STORE_PICKUP ：到店自提
     * DELIVERY_TO_HOME：送货上门
     */
    private String pickupMethod;

}
